package com.enjoyor.soa.traffic.api.dto.collectms;

import java.util.concurrent.ConcurrentHashMap;

import com.enjoyor.soa.traffic.util.bean.base.ABean;

/**
 *
 * @ClassName: DevDataPojo
 * @Description: 设备交通数据
 * @author wuhao
 * @email
 * @date 2016年3月14日 上午9:31:05
 */
public class DevDataDto extends ABean implements Cloneable {
	/**  */
	private static final long serialVersionUID = -5438408631779351034L;
	// 设备类型
	private String devModelType;
	// 设备编号
	private String devId;
	// 设备IP
	private String devIp;
	// 设备期数
	private String devProject;
	// 总流量
	private int devFlow;
	// c1车型总流量
	private int devFlowC1;
	// c2车型总流量
	private int devFlowC2;
	// c3车型总流量
	private int devFlowC3;
	// c4车型总流量
	private int devFlowC4;
	// c5车型总流量
	private int devFlowC5;
	// 车道平均速度
	private double devSpeed;
	// 平均车头时距
	private double devGap;
	// 平均车头间距
	private double devHeadWay;
	// 平均占有率
	private double devOccupancy;
	// 平均饱和度
	private double devSaturation;
	// 采集时间（设备采集）
	private String collectTime;
	// 记录时间（系统接收）
	private String recordTime;
	// key为devWayId
	private ConcurrentHashMap<String, DevWayDataDto> devWayMap = new ConcurrentHashMap<String, DevWayDataDto>();
	// 计算5分钟数据的时候使用
	private int count;

	public DevDataDto() {
		this.devFlow = 0;
		this.devFlowC1 = 0;
		this.devFlowC2 = 0;
		this.devFlowC3 = 0;
		this.devFlowC4 = 0;
		this.devFlowC5 = 0;
		this.devGap = 0;
		this.devHeadWay = 0;
		this.devOccupancy = 0;
		this.devSaturation = 0;
		this.devSpeed = 0;
		this.count = 0;
	}

	public String getDevModelType() {
		return devModelType;
	}

	public void setDevModelType(String devModelType) {
		this.devModelType = devModelType;
	}

	public String getDevId() {
		return devId;
	}

	public void setDevId(String devId) {
		this.devId = devId;
	}

	public String getDevIp() {
		return devIp;
	}

	public void setDevIp(String devIp) {
		this.devIp = devIp;
	}

	public String getDevProject() {
		return devProject;
	}

	public void setDevProject(String devProject) {
		this.devProject = devProject;
	}

	public int getDevFlow() {
		return devFlow;
	}

	public void setDevFlow(int devFlow) {
		this.devFlow = devFlow;
	}

	public int getDevFlowC1() {
		return devFlowC1;
	}

	public void setDevFlowC1(int devFlowC1) {
		this.devFlowC1 = devFlowC1;
	}

	public int getDevFlowC2() {
		return devFlowC2;
	}

	public void setDevFlowC2(int devFlowC2) {
		this.devFlowC2 = devFlowC2;
	}

	public int getDevFlowC3() {
		return devFlowC3;
	}

	public void setDevFlowC3(int devFlowC3) {
		this.devFlowC3 = devFlowC3;
	}

	public int getDevFlowC4() {
		return devFlowC4;
	}

	public void setDevFlowC4(int devFlowC4) {
		this.devFlowC4 = devFlowC4;
	}

	public int getDevFlowC5() {
		return devFlowC5;
	}

	public void setDevFlowC5(int devFlowC5) {
		this.devFlowC5 = devFlowC5;
	}

	public String getCollectTime() {
		return collectTime;
	}

	public void setCollectTime(String collectTime) {
		this.collectTime = collectTime;
	}

	public String getRecordTime() {
		return recordTime;
	}

	public void setRecordTime(String recordTime) {
		this.recordTime = recordTime;
	}

	public ConcurrentHashMap<String, DevWayDataDto> getDevWayMap() {
		return devWayMap;
	}

	public void setDevWayMap(ConcurrentHashMap<String, DevWayDataDto> devWayMap) {
		this.devWayMap = devWayMap;
	}

	public double getDevSpeed() {
		return devSpeed;
	}

	public void setDevSpeed(double devSpeed) {
		this.devSpeed = devSpeed;
	}

	public double getDevGap() {
		return devGap;
	}

	public void setDevGap(double devGap) {
		this.devGap = devGap;
	}

	public double getDevHeadWay() {
		return devHeadWay;
	}

	public void setDevHeadWay(double devHeadWay) {
		this.devHeadWay = devHeadWay;
	}

	public double getDevOccupancy() {
		return devOccupancy;
	}

	public void setDevOccupancy(double devOccupancy) {
		this.devOccupancy = devOccupancy;
	}

	public double getDevSaturation() {
		return devSaturation;
	}

	public void setDevSaturation(double devSaturation) {
		this.devSaturation = devSaturation;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	@Override
	public DevDataDto clone() throws CloneNotSupportedException {
		return (DevDataDto) super.clone();
	}

}
